﻿
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace OAuth.Server.Domain.Entities
{
    /// <summary> 密钥表 </summary>
    [Table("t_secret")]
    public class TSecret
    {
        /// <summary> 标题 </summary>
        public string Title { get; set; }
        /// <summary> 过期时间 </summary>
        public DateTime? ExpiredTime { get; set; }
        /// <summary> 数据 </summary>
        public string Data { get; set; }
        /// <summary> 源类型:0,client;1,resource </summary>
        public byte Source { get; set; }
        /// <summary> 源ID </summary>
        public Guid SourceId { get; set; }
        /// <summary> 密钥类型 </summary>
        public string Type { get; set; }
    }
}
